import requests
from bs4 import BeautifulSoup


def fetch_notifications(url):
    response = requests.get(url)
    if response.status_code == 200:
        soup = BeautifulSoup(response.content, 'html.parser')
        titles = soup.find_all('a', class_='c56628')
        notifications = [{"title": a.text.strip(), "link": a['href']} for a in titles if 'href' in a.attrs]
        return notifications
    else:
        print("Failed to retrieve data")
        return []
